home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12127 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: fac4069154.law.duke.edu!graham
  2. From: graham@faculty.law.duke.edu
  3. Newsgroups: comp.lang.c++
  4. Subject: Opening Win '95/NT filenames in MSVC++ 4.0 -- Problems
  5. Date: Mon, 18 Mar 1996 10:21:03
  6. Organization: Duke University School of Law
  7. Message-ID: <graham.3.000A5A2A@faculty.law.duke.edu>
  8. NNTP-Posting-Host: fac4069154.law.duke.edu
  9. Summary: I can't open files with long names
  10. X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
  11.  
  12. I am trying to execute the following line of code on my Win95 machine.  I'm 
  13. using MSVC++ 4.0, and I've compiled it as an MS-DOS, Quick-Win, and 
  14. Windows application.  (The compiler and AppWizard do not present me with a 
  15. "console application" option.)
  16.  
  17.     if (_access ("C:\\work\\lawsnews.html", 0) < 0) { 
  18.  
  19.    The preceding call to _access always returns less than 0--despite the fact 
  20. that I know the file exists.  Short filenames (MS-DOS filenames) work fine:
  21.  
  22.     if (_access ("C:\\work\\will.wrk", 0) < 0) {
  23.  
  24.    I can't open or verify the existence of files with non-MS-DOS names.  Could 
  25. anyone redirect my wayward steps?  Many thanks!!
  26.  
  27. Tony Graham
  28. graham@faculty.law.duke.edu
  29.